<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>

	</head>

	<body>
	</body>
	<!-- eclipse -->
	<script src="../runmap/lib/jquery.min.js"></script>
	<script src="../runmap/lib/JsonUtil.js"></script>
	<!-- HBuilder -->
<!-- 	<script src="../lib/jquery.min.js"></script> -->
	<script>
	
		//该测试页面启动地址：http://localhost:8080/runmap/T_User.html
	
	
		var hostUrl = "http://localhost:8080/runmap/user/";
// 		var hostUrl = "http://192.168.200.30:7002/kddh/user/";
		
		
		
// 		//发送验证短信
		sms();


		

		//发送验证短信
		function sms(){
			var jsonObj = {
					"phone":"18511065409",
					"msg":"5678"
			};
			var jsonStr = json2str(jsonObj);
			callAjax("sms", jsonStr, "添加任务:addNewTask");
		}

		
		
		//调用后台接口
		function callAjax(funcName, paramObj, log, callback){
			$.ajax({
				type: "post",
				url: hostUrl + funcName,
				data: paramObj,
				contentType:'application/json',
				dataType: 'json',
				success: function(result) {
					console.log(log);
					console.log(result);
					if(callback){
						callback(result);
					}
					}
				});
		}
		
	</script>

</html>